# -*- coding: utf-8 -*-
# https://blog.csdn.net/weixin_52040868
# 公众号：测个der
# 微信：qing_an_an

from PyQt5.QtCore import QObject,pyqtSignal

class SignalClass(QObject):
    signal1 = pyqtSignal()
    signal2 = pyqtSignal(int)

    def __init__(self):
        super(SignalClass, self).__init__()

        self.signal1.connect(self.signal1_)
        self.signal2.connect(self.signal2_)

        self.signal2.connect(self.signal1)

        self.signal1.emit()
        self.signal2.emit(1)

        self.signal1.disconnect(self.signal1_)
        self.signal2.disconnect(self.signal2_)
        self.signal2.disconnect(self.signal1)

        self.signal1.connect(self.signal1)
        self.signal2.connect(self.signal2)

        self.signal1.emit()
        self.signal2.emit(1)

    def signal1_(self):
        print("signal-1")

    def signal2_(self):
        print("signal-2")

if __name__ == '__main__':
    ss = SignalClass()